﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="register.aspx.cs" Inherits="MxWeiXinPF.Web.register" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>用户注册</title>
    <meta charset="UTF-8">
    <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="format-detection" content="telephone=no">
    <script type="text/javascript" src="../scripts/jquery/jquery-1.10.2.min.js"></script>
    <script type="text/javascript" src="../scripts/jquery/Validform_v5.3.2_min.js"></script>
    <script type="text/javascript" src="../../scripts/datepicker/WdatePicker.js"></script>
    <script type="text/javascript" src="../admin/js/layout.js"></script>
    <link href="../admin/skin/default/style.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
        $(function () {
            //初始化表单验证
            $("#form1").initValidform();
            $("#btnSubmit").onclick
        });
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <input id="hwid" type="hidden" runat="server" />
    <input id="hid" type="hidden" runat="server" />
    <!--导航栏-->
    <div class="location">
        <span>用户注册</span>
    </div>
    <!--/导航栏-->
    <!--内容-->
    <div class="tab-content">
        <dl>
            <dt  style="width: 65px; text-align: center">用户名</dt>
            <dd style="margin-left: 75px">
                <asp:TextBox ID="txtUserName" runat="server" CssClass="input txt" datatype="*2-100"
                    sucmsg=" " ajaxurl="/tools/admin_ajax.ashx?action=validate_username"></asp:TextBox>
                <span class="Validform_checktip">*登录的用户名</span></dd>
        </dl>
        <dl>
            <dt  style="width: 65px; text-align: center">登录密码</dt>
            <dd style="margin-left: 75px">
                <asp:TextBox ID="txtPassword" runat="server" CssClass="input txt" TextMode="Password"
                    datatype="*6-20" nullmsg="请设置密码" errormsg="密码范围在6-20位之间" sucmsg=" "></asp:TextBox>
                <span class="Validform_checktip">*登录的密码，至少6位</span></dd>
        </dl>
        <dl>
            <dt  style="width: 65px; text-align: center">确认密码</dt>
            <dd style="margin-left: 75px">
                <asp:TextBox ID="txtPassword1" runat="server" CssClass="input txt" TextMode="Password"
                    datatype="*" recheck="txtPassword" nullmsg="请再输入一次密码" errormsg="两次输入的密码不一致" sucmsg=" "></asp:TextBox>
                <span class="Validform_checktip">*再次输入密码</span></dd>
        </dl>
        <dl>
            <dt style="width: 65px; text-align: center">邮箱账号</dt>
            <dd style="margin-left: 75px">
                <asp:TextBox ID="txtEmail" runat="server" CssClass="input txt" datatype="/^[a-zA-Z0-9\._-]+@[a-zA-Z0-9_-]+\.[a-zA-Z0-9_-]{2,4}$/"
                    nullmsg="邮箱不能为空" errormsg="请输入正确的邮箱号码" sucmsg=" "  ></asp:TextBox></dd>
        </dl>
        <dl>
            <dt style="width: 65px; text-align: center">用户昵称</dt>
            <dd style="margin-left: 75px">
                <asp:TextBox ID="txtNickName" runat="server" CssClass="input txt"></asp:TextBox></dd>
        </dl>
        <dl style="display: none">
            <dt style="width: 65px; text-align: center">上传头像</dt>
            <dd style="margin-left: 75px">
                <asp:TextBox ID="txtAvatar" runat="server" CssClass="input normal upload-path"></asp:TextBox>
                <div class="upload-box upload-img">
                </div>
            </dd>
        </dl>
        <dl>
            <dt style="width: 65px; text-align: center">真实姓名</dt>
            <dd style="margin-left: 75px">
                <asp:TextBox ID="txttruename" runat="server" CssClass="input txt" datatype="*" nullmsg="真实姓名不能为空"></asp:TextBox></dd>
        </dl>
        <dl>
            <dt style="width: 65px; text-align: center">用户性别</dt>
            <dd style="margin-left: 75px">
                <div class="rule-multi-radio">
                    <asp:RadioButtonList ID="rblSex" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow">
                        <asp:ListItem Value="男">男</asp:ListItem>
                        <asp:ListItem Value="女">女</asp:ListItem>
                    </asp:RadioButtonList>
                </div>
            </dd>
        </dl>
        <dl>
            <dt style="width: 65px; text-align: center">生日日期</dt>
            <dd style="margin-left: 75px">
                <div class="input-date">
                    <asp:TextBox ID="txtBirthday" runat="server" CssClass="input normal date" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd'})"
                        datatype="/^\s*$|^\d{4}\-\d{1,2}\-\d{1,2}$/" nullmsg="出生日期不能为空" errormsg="请选择正确的日期"
                        sucmsg=" " />
                    <i>日期</i>
                </div>
            </dd>
        </dl>
        <dl>
            <dt style="width: 65px; text-align: center">手机号码</dt>
            <dd style="margin-left: 75px">
                <asp:TextBox ID="txtMobile" runat="server" CssClass="input txt" datatype="/1[3-8]+\d{9}/"
                    nullmsg="手机号码不能为空" errormsg="请输入正确的手机号码" sucmsg=" " ></asp:TextBox></dd>
        </dl>
        <dl>
            <dt style="width: 65px; text-align: center">通讯地址</dt>
            <dd style="margin-left: 75px">
                <asp:TextBox ID="txtAddress" runat="server" CssClass="input txt" datatype="*5-255"
                    nullmsg="地址不能为空" errormsg="至少5个汉字或10个字符" sucmsg=" "></asp:TextBox></dd>
        </dl>
        <dl>
            <dt style="width: 65px; text-align: center">工作性质</dt>
            <dd style="margin-left: 75px">
                <asp:TextBox ID="txtjobtype" runat="server" CssClass="input txt" datatype="*2-100"
                    nullmsg="工作性质不能为空" errormsg="至少2个汉字或4个字符" sucmsg=" "></asp:TextBox></dd>
        </dl>
    </div>
    <!--内容-->
    <!--工具栏-->
    <div class="page-footer">
        <div class="btn-list" style="text-align: center">
            <asp:Button ID="btnSubmit" runat="server" Text="提交保存" CssClass="btn" OnClick="btnSubmit_Click" />
            <input name="btnReturn" type="button" value="返回上一页" class="btn yellow" onclick="javascript: history.back(-1);" />
        </div>
        <div class="clear">
        </div>
    </div>
    <!--/工具栏-->
    </form>
</body>
</html>
